package com.qianfeng.rencai.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wenka on 2022/3/30 15:47
 *
 * @author wenkaixin
 * @version 1.0
 * @since 1.0
 */
@RestController
@RequestMapping("/sys")
public class SysUserController {



    @PreAuthorize("hasAuthority('schedule:job:save')")
    @RequestMapping("/add")
    public String add(){
        return "add";
    }

    @PreAuthorize("hasAuthority('sys:schedule:info')")
    @RequestMapping("/info")
    public String info(){
        return "info";
    }
    @PreAuthorize("hasAuthority('schedule:job:delete')")
    @RequestMapping("/delete")
    public String delete(){
        return "delete";
    }
    @PreAuthorize("hasAuthority('schedule:job:update')")
    @RequestMapping("/update")
    public String update(){
        return "update";
    }
}
